import java.util.PriorityQueue;

public class Main {
    public static void main(String[] args) {
        Student student = new Student();
        student.name = "lisi";
        Student student1 = new Student();
        student1.name = "lisi";

        System.out.println(student == student1); //比较的是地址
        System.out.println(student.equals(student1));  //由于重写过equals，所以根据自己写的方法，比较的是内容
    }
}